<template>
  <el-collapse  :data="newsList"  accordion >
    <div v-for="(news,index) in newsList">
      <el-collapse-item title="人民留言" :name="index" class="mutill">
        <el-descriptions title="问题信息" >
            <el-descriptions-item label="问题类型">{{news.leixing}}</el-descriptions-item>
            <el-descriptions-item label="问题内容">{{news.neirong}}</el-descriptions-item>
        </el-descriptions>
      </el-collapse-item>
    </div>
  </el-collapse>


</template>

<script>
export default {
  name: "ShowRenmin",
  data(){
    return {
      newsList:[],
      cid:"",
      news:{}
    }
  },
  created(){
    this.selectAll();
  },
  methods: {
    selectAll(){
      let url="";
      url="/renmin/"
      this.axios.get(url).then((resp)=>{
        this.newsList=resp.data;
      });
    }
  }
}
</script>

<style scoped>

</style>
